<?php
if(isset($_REQUEST['s']) && $_REQUEST['s'] != ""){
	$s = $_REQUEST['s'];
}
if(isset($_REQUEST['sn']) && $_REQUEST['sn'] != ""){
	$sn = $_REQUEST['sn'];
}
?>

<div class="searchform">
  <form method="get" id="searchform2" action="<?php echo bloginfo('home')."/"; ?>"> 
   <input type="hidden" name="t" value="1" />
    <span class="searchfor"><input type="text" name="s" id="sr" class="s" PLACEHOLDER="<?php echo SEARCH;?>" value="<?php echo $s; ?>" />
     <small class="text"><?php echo SEARCH_FOR_MSG;?> </small>
     </span>
  </form>
</div>
<script type="text/javascript">
function set_srch()
{
	if(document.getElementById('sr').value=='<?php echo get_option('ptthemes_search_name'); ?>')
	{
		document.getElementById('sr').value = ' ';	
	}
	if(document.getElementById('sn').value=='<?php echo NEAR_TEXT; ?>')
	{
		document.getElementById('sn').value = '';	
	}
}
</script>